var domian ="https://www.easy-mock.com/mock/5aa77cbf2b0894377fc76640";
function search(method,url,data){
	var xhr = new XMLHttpRequest();
	xhr.open(method,url);
	xhr.setRequestHeader("projectname","qq_music");
	xhr.send(data);
	xhr.addEventListener("readystatechange",function(){
		if(xhr.status==200&&xhr.readyState==4){
			add3(xhr.response)
		}
	})
}
search("GET",domian+"/search");
function add3(res){
	var res = JSON.parse(res);
	var hotlist = res.data.hotkey;
	var t = "";
	var div = document.querySelector(".hot_list")
	hotlist.forEach(function(el){
		t+=`<a class="tag_key" href="">
							${el.k}
						</a>
		`
	});
	div.innerHTML+=t
	
}
